$(function(){
    //初始化部门下拉框
    $.getJSON($("#contextPath").val()+"/back/user/getAllDepartment.do",function(data){
        var html = "";
        $.each(data,function(i,option){
            html += "<option value='"+option.departid+"'>"+option.departname+"</option>";
        })
        $("#departid").html(html);
        $("#departid").val("");
    })
})

